import requests

print("==========设置请求头==============")
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0',
    'my-test': 'Hello'
}
r = requests.get('http://httpbin.org/get',headers=headers)
# r = requests.get('http://httpbin.org/get')
print(r.text)
print("================================")
print("================================")
print("================================")
print("================================")
print("================================")
